/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.hpi.generator.generator.storages;

import de.hpi.generator.generator.storages.ValueSeriaInfo;
import java.util.ArrayList;

/**
 * a Collection with ValueSeriaInfos
 * @author Michael Wolowyk
 */
public class ValueSeriaInfoCollection extends ArrayList<ValueSeriaInfo> {

    private static final long serialVersionUID = 1L;



    @Override
    public boolean equals(Object aObject) {

        if (aObject instanceof ValueSeriaInfoCollection) {
            if(this.hashCode() == aObject.hashCode()){
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        for (ValueSeriaInfo aValueSeriaInfo : this) {
            hash = 59 * hash + aValueSeriaInfo.getValue();
        }
        return hash;
    }
}
